package com.example.wexcle.demos.web.service;

import com.example.wexcle.demos.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;


@FeignClient("tydk-oss")
public interface TydkOss {
    @PostMapping(value = "/eduoss/fileoss",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public R uploadOssFile(@RequestPart("file") MultipartFile file);
    //oss模块将导出的excle压缩包上传到oss
    @PostMapping("/eduoss/localoss")
    public R localoss(@RequestParam String address);

}
